package com.ttl.bc.master.dwr.service;

import java.util.List;

import com.ttl.bc.ap.ap.bean.BCAPBean;
import com.ttl.bc.ap.ap.db.BCAPDAO;


public class BCAPService {
	
	@SuppressWarnings("unchecked")
	public BCAPBean getAP(String id) {
		
	//	String hql = "FROM BCAPBean  WHERE code =  '"+id+"'";
		BCAPBean ap = new BCAPBean();		
		BCAPDAO dao = new BCAPDAO();
		List al = dao.find(id);
		if (al.size()>0) {
			ap = (BCAPBean)al.get(0);								
		}				

		return ap;
	}
}
